<extend name="app/Template/mobile" />

<block name="area_header">
	<style type="text/css">
		.top{height: 100px; width: 100%; background-color: ; padding: 4px;}
		.top_dv{background-color: white; height: 100%; width: 50%; padding: 10px; } 
		.txa{height: 40px; width: 100%; margin-top: 5px;}
	</style>
	<script type="text/javascript">
	$(function(){
		$('#price').keyup(function(){
			var coin=Number($('#coin').text());
			if($(this).val()>coin || isNaN($(this).val())){
				alert('请填写有效余额!');
				$(this).val('0.00');
			}
		})
	})
</script>
</block>

<block name="area_body">
	
	<div class="top">
		<div class="top_dv "style="float: left;" >
			<font size="1" color="#555555">可提现余额</font><br>
			<font size="6" id="coin" color="green">{$wallet.account_balance}</font><font size="1" color="green">元</font>
		</div>
		<div class="top_dv " style="float: right;">
			<font size="1" color="#555555">冻结金额</font><br>
			<font size="6" id="coin" color="orangered">{$wallet.frozen_funds}</font><font size="1" color="orangered">元</font>
		</div>
		
	</div>
	
	<div class="am-panel am-panel-secondary">
		<div class="am-panel-hd">填写提现信息（目前仅支持支付宝）</div>
			<form class="fm"  method="post">
			<input type="hidden" name="type" id="type" value="1" />
			<input type="hidden" name="uid" id="type" value="97" />
		  <div class="am-panel-bd">
		  	<input type="text" class="txa" name="unum" id="unum" value="" placeholder="请输入支付宝账号" />
		  	<input type="text" class="txa" name="uname" id="uname" value="" placeholder="请输入收款人姓名" />
		  	<input type="text" class="txa" name="price" id="price" value="" placeholder="请输入提现金额" />
		  	<button type="button" url="{:U('Shop/User/moneymanager')}" style="margin-top: 20px;" target-form="fm"   class="am-btn ajax-post am-btn-primary am-btn-block">提现</button>
		  </div>
		  </form>
	</div>
</block>

